package com.zzq.demo.tom;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@ComponentScan(basePackages = {"com.zzq.demo.tom","com.gitee.sunchenbin.mybatis.actable.manager.*"})
@MapperScan(basePackages = {"com.zzq.demo.tom.mapper","com.gitee.sunchenbin.mybatis.actable.dao.*"})
@SpringBootApplication
public class TomApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(TomApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(TomApplication.class, args);
    }

}
